package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dao.MyGoodsMapper;
import com.tencent.wxcloudrun.model.MyGoods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MyGoodsService{

    @Resource
    private MyGoodsMapper myGoodsMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return myGoodsMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(MyGoods record) {
        return myGoodsMapper.insert(record);
    }

    
    public int insertSelective(MyGoods record) {
        return myGoodsMapper.insertSelective(record);
    }

    
    public MyGoods selectByPrimaryKey(Integer id) {
        return myGoodsMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(MyGoods record) {
        return myGoodsMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(MyGoods record) {
        return myGoodsMapper.updateByPrimaryKey(record);
    }

    
    public int batchInsert(List<MyGoods> list) {
        return myGoodsMapper.batchInsert(list);
    }
    public List<MyGoods> findAll() {
        return myGoodsMapper.findAll();
    }

}
